package com.hs.shirodemo2.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName RouterController
 * @Description TODO
 */
@Controller
public class RouterController {

    @RequestMapping("/")
    public String toLindex(){
        return "index";
    }

    @RequestMapping("/login")
    public String toLogin() {
        return "login";
    }

    @RequestMapping("/welcome")
    public String tpWelcome() {
        return "welcome";
    }

    @RequestMapping("/index")
    public String toLindex1(){
        return "index";
    }

    @RequestMapping("/page/sys/user")
    public String toUser(){
        return "sys/user";
    }

    @RequestMapping("/page/sys/role")
    public String toRole(){
        return "sys/role";
    }

    @RequestMapping("/page/sys/permission")
    public String toPermission(){
        return "sys/permission";
    }

}
